/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MYData.Entity.SystemModels;

namespace MYData.Entity.DomainModels
{
    [Entity(TableCnName = "经费下拨表", TableName = "tb_project_billing_allocation")]
    public partial class tb_project_billing_allocation : BaseEntity
    {
        /// <summary>
        ///经费下拨主键id
        /// </summary>
        [Key]
        [Display(Name = "经费下拨主键id")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string allocationId { get; set; }

        /// <summary>
        ///外键经费入帐单表ID
        /// </summary>
        [Display(Name = "外键经费入帐单表ID")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string billingId { get; set; }

        /// <summary>
        ///外键项目基础信息表ID
        /// </summary>
        [Display(Name = "外键项目基础信息表ID")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string projectId { get; set; }

        /// <summary>
        ///下拨项目总经费(万)
        /// </summary>
        [Display(Name = "下拨项目总经费(万)")]
        [DisplayFormat(DataFormatString = "10,2")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public decimal allocationExpenditure { get; set; }

        /// <summary>
        ///外键经费下拨流程表ID
        /// </summary>
        [Display(Name = "外键经费下拨流程表ID")]
        [MaxLength(64)]
        [Column(TypeName = "nvarchar(64)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string belowflowId { get; set; }

        /// <summary>
        ///创建人
        /// </summary>
        [Display(Name = "creator")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string creator { get; set; }

        /// <summary>
        ///修改人
        /// </summary>
        [Display(Name = "modifier")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string modifier { get; set; }

        /// <summary>
        ///修改时间
        /// </summary>
        [Display(Name = "modifierTime")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? modifierTime { get; set; }

        /// <summary>
        ///是否删除
        /// </summary>
        [Display(Name = "isDelete")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? isDelete { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "createDate")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? createDate { get; set; }

        /// <summary>
        ///到账直接经费
        /// </summary>
        [Display(Name = "到账直接经费")]
        [DisplayFormat(DataFormatString = "10,2")]
        [Column(TypeName = "decimal")]
        public decimal? directMoney { get; set; }

        /// <summary>
        ///下拨直接经费
        /// </summary>
        [Display(Name = "下拨直接经费")]
        [DisplayFormat(DataFormatString = "10,2")]
        [Column(TypeName = "decimal")]
        public decimal? UpdirectMoney { get; set; }

        /// <summary>
        ///到账间接经费
        /// </summary>
        [Display(Name = "到账间接经费")]
        [DisplayFormat(DataFormatString = "10,2")]
        [Column(TypeName = "decimal")]
        public decimal? indirectMoney { get; set; }

        /// <summary>
        ///下拨间接经费
        /// </summary>
        [Display(Name = "下拨间接经费")]
        [DisplayFormat(DataFormatString = "10,2")]
        [Column(TypeName = "decimal")]
        public decimal? UpindirectMoney { get; set; }


    }
}